﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Lapv.Master" AutoEventWireup="true"
    CodeBehind="ChangePass.aspx.cs" Inherits="Lapv.Account.ChangePass" %>

<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">

    <script type="text/javascript" language="javascript">

        $(document).ready(function() {

            $("#ul_Amin").css("display", "block");
            $("#li_accAdmin").css("background-image", "url(<%=domain %>Style/Images/menu_close.PNG)");

        });
        function Check() {

            var new1 = (document.getElementById("<%=txtPass.ClientID%>").value.trim());
            var new2 = (document.getElementById("<%=txtRePass.ClientID%>").value.trim());
            if (document.getElementById("<%=txtOPass.ClientID%>").value.trim() == "") {

                alert(errorEmpty);
                document.getElementById("<%=txtOPass.ClientID%>").focus();
                return false;

            }

            if (document.getElementById("<%=txtPass.ClientID%>").value.trim() == "") {

                alert(errorEmpty);
                document.getElementById("<%=txtPass.ClientID%>").focus();
                return false;

            }
            if (document.getElementById("<%=txtRePass.ClientID%>").value.trim() == "") {

                alert(errorEmpty);
                document.getElementById("<%=txtRePass.ClientID%>").focus();
                return false;

            }
            if (new1.length > 0 && new2.length > 0) {
                if (new1 != new2) {
                    alert("Mật khẩu không tương thích");
                    return false;
                }



            }

            return true;
        }
    </script>

</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="header" runat="server">
    <%--menu tab  --%>
    <div class="tabnav">
        <ul>
            <li class="active"><a href="<%= domain%>/ChangePass.aspx" class="add_t">Đổi mật khẩu</a></li>
        </ul>
        <div class="clr">
        </div>
    </div>
</asp:Content>
<asp:Content ID="Content3" ContentPlaceHolderID="content" runat="server">
    <div class="form form1">
        <div>
            <span>Mật khẩu</span>
            <asp:TextBox ID="txtOPass" runat="server" TextMode="Password"></asp:TextBox>
        </div>
        <div>
            <span>Mật khẩu mới</span>
            <div>
                <asp:TextBox ID="txtPass" runat="server" TextMode="Password"></asp:TextBox>
            </div>
        </div>
        <div>
            <span>Nhập lại mật khẩu mới</span>
            <div>
                <asp:TextBox ID="txtRePass" runat="server" TextMode="Password"></asp:TextBox>
            </div>
        </div>
        <div>
            <span></span>
            <div>
                <asp:Button ID="btluu" runat="server" Text="Lưu" />
                <input type="button" value="Hủy" />
            </div>
        </div>
    </div>
</asp:Content>
